/*
1. amount: 99
2. buyTime: "2025-01-07 00:00:00"
3. createdAt: "2025-01-10 13:39:05"
4. id: "1877590967104589824"
5. productName: "123"
6. productNum: 2
7. userInfoId: 1877553049627545600
*/
/// 订单信息
class OrderInfo {
  String? id;
  String? productName;
  int? productNum;
  String? buyTime;
  String? createdAt;
  num? userInfoId;
  num? amount;

  OrderInfo({
    this.id,
    this.productName,
    this.productNum,
    this.buyTime,
    this.createdAt,
    this.userInfoId,
    this.amount,
  });

  OrderInfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    productName = json['productName'];
    productNum = json['productNum'];
    buyTime = json['buyTime'];
    createdAt = json['createdAt'];
    userInfoId = json['userInfoId'];
    amount = json['amount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['productName'] = productName;
    data['productNum'] = productNum;
    data['buyTime'] = buyTime;
    data['createdAt'] = createdAt;
    data['userInfoId'] = userInfoId;
    data['amount'] = amount;
    return data;
  }
}
